import { post } from '../../util/http.js'
export default {
    // 首页获取数据
    indexData (id) {
        return post('/dataShow/IncomAndExpenses', {
            agentId: id
        })
    },
    // 日收入明细
    dayInListApi (id, type, date1, date2) {
        return post('/dataShow/incomeList', {
            agentId: id,
            type: type,
            startDate: date1,
            endDate: date2
        })
    },
    // 日收入详情 
    dayInDeatailApi (id) {
        return post('/dataShow/incomeDetail', {
            incomeId: id,
        })
    },
    // 日支出明细
    dayOutListApi (id, type, date1, date2) {
        return post('/dataShow/accountList', {
            agentId: id,
            type: type,
            startDate: date1,
            endDate: date2
        })
    },
    // 日支出详情
    dayOutDeatailApi (id) {
        return post('/dataShow/accountDetail', {
            accountDetailId: id,
        })
    },
    //获取下线列表
    getUserData(obj) {
        return post('/dataShow/userDataList', obj)
    },
     //获取详情
     getUserDataDetail(obj) {
        return post('/dataShow/userDataDetail', obj)
    }
}